package com.candy.dao;

import com.candy.bean.Role;
import com.candy.bean.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserInfoMapper {
    //根据用户名查询用户
    UserInfo loadUserByUsername(@Param("username") String username);

    //根据用户id查询角色
    List<Role> getRolesByUid(@Param("uid") Integer uid);
}
